import request from "@/utils/request";
// 获取提现记录列表
export function listWithdrawalRecord(query) {
  return request({
    url: "/customer/withdrawalRecord/list",
    method: "get",
    params: query,
  });
}

// 新增提现记录
export function addWithdrawalRecord(data) {
  return request({
    url: "/customer/withdrawalRecord",
    method: "post",
    data: data,
  });
}

// 提现记录导出
export function exportWithdrawalRecord(query) {
  return request({
    url: `/customer/withdrawalRecord/export`,
    method: "get",
    params: query,
  });
}

// 提现记录更新
export function updateWithdrawalRecord(data) {
  return request({
    url: `/customer/withdrawalRecord`,
    method: "put",
    data: data,
  });
}

// 获取提现记录详情
export function getWithdrawalRecord(query) {
  return request({
    url: `/customer/withdrawalRecord/${query.id}`,
    method: "get",
  });
}
